import { createWebHashHistory, createRouter } from 'vue-router'
import sonPage from './sonPage.ts'
import independentPage from './independentPage.ts'
const routes = [
  {
    path: '/',
    component: ()=>import('@/views/Main.vue'),
    redirect: 'home',
    children:[
      ...sonPage
    ],
  },
  //独立页面
    ...independentPage
  
]


const router = createRouter({
  history: createWebHashHistory(),
  routes,
})


router.beforeEach((to,from,next)=>{
  next()
})

export default router;